package lt.marsrutai.mobile.android.service;

import java.util.List;

import lt.marsrutai.mobile.android.exception.DataAccessException;
import lt.marsrutai.mobile.android.model.ArrivalTime;
import lt.marsrutai.mobile.android.model.DayGroup;
import lt.marsrutai.mobile.android.model.MobileScope;
import lt.marsrutai.mobile.android.model.RouteSearchResult;
import lt.marsrutai.mobile.android.model.Schedule;
import lt.marsrutai.mobile.android.model.Stop;
import lt.marsrutai.mobile.android.model.StopArrivalTimes;
import lt.marsrutai.mobile.android.model.Track;
import lt.marsrutai.mobile.android.model.Transport;

/**
 *
 * @author Martynas Mickevicius
 *
 */
public interface DataService {

    public List<MobileScope> getMobileScopes() throws DataAccessException;

    public MobileScope getScopeInfo(String scopeName) throws DataAccessException;

    public List<String> getStopNames(String scopeName) throws DataAccessException;

    public List<Stop> getStops(String scopeName, boolean withSchedules, String searchQuery, Double lat, Double lng, Double distance) throws DataAccessException;

    public Stop getStopById(String scopeName, String stopId) throws DataAccessException;

    public List<ArrivalTime> getArrivalTimes(String scopeName, String stopId, String stopGroupName, int maxMinutes, int maxResults, String time)
            throws DataAccessException;

    public List<Schedule> getSchedules(String scopeName) throws DataAccessException;

    public Schedule getScheduleById(String scopeName, String scheduleId) throws DataAccessException;

    public List<Track> getTracks(String scopeName, String scheduleId) throws DataAccessException;

    public Track getTrackById(String scopeName, String trackId) throws DataAccessException;

    public List<Stop> getTrackStops(String scopeName, String trackId) throws DataAccessException;

    public List<DayGroup> getDifferentRunningDays(String scopeName, String scheduleId) throws DataAccessException;

    public StopArrivalTimes getStopTimes(String scopeName, String scheduleId, String trackId, String stopId) throws DataAccessException;

    public RouteSearchResult findRoutes(String scopeName, String start, String end, String time, boolean isArrival) throws DataAccessException;

    public List<Track> getTracksWithIds(String scopeName, String[] trackIds) throws DataAccessException;

    public List<ArrivalTime> getRunStops(String scopeName, String runId) throws DataAccessException;

    public List<Transport> getTransports(String scopeName) throws DataAccessException;
}
